const pug=require('pug');
const fs=require('fs')
var str=pug.renderFile('./views/index.pug',{
    pretty:true
})
fs.writeFile('./build/index.html',str,function(err){
    if(err){
        console.log('编译失败',err);
    }else{
        console.log('编译成功');
    }
})